package com.zg.scf.service;

import com.zg.common.core.dao.scf.entity.Product;
import com.zg.common.core.service.IPageBaseService;
import com.zg.scf.domain.req.StateReq;

import java.util.List;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/5/22 10:47
 */

public interface ProductService extends IPageBaseService<Product> {

    /**
     * 修改状态
     * @param req
     */
    void editState(StateReq req);

    /**
     * 根据产品类型查询产品
     */
    List<Product> listByCredit(Long productTypeId);

    /**
     * 生成产品编号
     * @param bankId
     * @return
     */
    String generateCode(Long bankId);
}
